package com.aids_malaria.http.response;

import android.arch.persistence.room.Entity;
import android.arch.persistence.room.PrimaryKey;
import android.support.annotation.NonNull;

import com.litesuits.orm.db.annotation.NotNull;
import com.litesuits.orm.db.enums.AssignType;

import java.io.Serializable;

/**
 * 用户
 */
@Entity(tableName = "user", indices = {})
public class User implements Serializable {

    private boolean isCheck;
//    @PrimaryKey(AssignType.BY_MYSELF)
    @PrimaryKey
    @NonNull
    private String user_code;//登陆账号
    private String user_name;//用户名称
    private String password;//密码
    private String contact_pn;//联系电话号码
    private String role_id;//用户角色
    private String creating_time;//创建日期
    private String creator;//创建账号
    private String update_time;//更改日期
    private String updator;//更改账号

    public boolean isCheck() {
        return isCheck;
    }

    public void setCheck(boolean check) {
        isCheck = check;
    }

    public String getUser_code() {
        return user_code;
    }

    public void setUser_code(String user_code) {
        this.user_code = user_code;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getContact_pn() {
        return contact_pn;
    }

    public void setContact_pn(String contact_pn) {
        this.contact_pn = contact_pn;
    }

    public String getRole_id() {
        return role_id;
    }

    public void setRole_id(String role_id) {
        this.role_id = role_id;
    }

    public String getCreating_time() {
        return creating_time;
    }

    public void setCreating_time(String creating_time) {
        this.creating_time = creating_time;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public String getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(String update_time) {
        this.update_time = update_time;
    }

    public String getUpdator() {
        return updator;
    }

    public void setUpdator(String updator) {
        this.updator = updator;
    }
}
